/**
  ******************************************************************************
  * @file    SCK_IsTxDataReady.c
  * @author  exatron
  * @version V1.0.0
  * @date    segunda, 22 de dezembro de 2014
  * @brief   Verifica se o socket tem dados a serem enviados.
  ******************************************************************************
  * @attention
  *
  *
  ******************************************************************************
  */

/**
  * @addtogroup SCK
  * @{
  */

/* Includes ------------------------------------------------------------------*/
#include <common.h>

extern Socket_t sock[N_SOCKS];

/* External functions --------------------------------------------------------*/

/**
  * @defgroup SCK_Functions
  * @{
  */

/**
  * @brief  Verifica se o socket tem dados a serem enviados.
  * @param  SocketID_t: Socket a verificar
  * @retval Devolve pela serial DataStatus_t
  */
void SCK_IsTxDataReady(SocketID_t id)
{
	#ifdef DEBUG
	debug_append("%s - %s", __FUNCTION__, "enter");
	#endif

	aux_USART0_puts("%s=%d;%d\r\n", "SCK_ITDR", id, sock[id].istx);

	aux_SetBusy(FALSE);

	#ifdef DEBUG
	debug_append("%s - %s", __FUNCTION__, "exit");
	#endif
}

/**
  * @}
  */

/**
  * @}
  */





